import {IptTypeEnum} from '../enums/ipt-type-enum.ts'

/**
 * 输入组件类型常量对象
 */
export const IptTypeConst = {
  AUTO_COMPLETE: IptTypeEnum.AUTO_COMPLETE,
  CASCADER: IptTypeEnum.CASCADER,
  COLOR_PICKER: IptTypeEnum.COLOR_PICKER,
  DATA_PICKER: IptTypeEnum.DATA_PICKER,
  DYNAMIC_INPUT: IptTypeEnum.DYNAMIC_INPUT,
  DYNAMIC_TAGS: IptTypeEnum.DYNAMIC_TAGS,
  INPUT: IptTypeEnum.INPUT,
  INPUT_NUMBER: IptTypeEnum.INPUT_NUMBER,
  MENTION: IptTypeEnum.MENTION,
  RADIO_BTN_GROUP: IptTypeEnum.RADIO_BTN_GROUP,
  RATE: IptTypeEnum.RATE,
  SELECT: IptTypeEnum.SELECT,
  SLIDER: IptTypeEnum.SLIDER,
  SWITCH: IptTypeEnum.SWITCH,
  TIME_PICKER: IptTypeEnum.TIME_PICKER,
  TREE_SELECT: IptTypeEnum.TREE_SELECT,
  UPLOAD: IptTypeEnum.UPLOAD,
  LIST_INPUT: IptTypeEnum.LIST_INPUT,
}

/**
 * 输入组件类型
 */
export type IptType = typeof IptTypeConst[keyof typeof IptTypeConst]
